package Tests;
import static org.junit.Assert.*;

import javax.swing.*;

import java.awt.event.*;
import java.awt.*;
import java.util.Scanner;
import java.io.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import UserInterface.*;

public class initUITest {
	
	private static initUI init;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		init = new initUI("admin");
	}
//
//	@Test
//	public void testInitUI() {
//		assertNotNull(init);
//		assertFalse(init.getValidFile());
//	}
//	
//	@Test
//	public void testBuildImagePanel() {
//		ImageIcon image = new ImageIcon("radar.jpg"); // fetches image
//		JLabel expectedRadarImage = new JLabel(image);
//		assertEquals(expectedRadarImage.getIcon().toString(), init.getRadarImage().getIcon().toString()); // Evalutes the image path to the expected one
//	}
//
//	@Test
//	public void testBuildTextPanel() {	
//		assertEquals("Arial", init.getUserPrompt().getFont().getName());
//		assertEquals(1, init.getUserPrompt().getFont().getStyle()); // 1 is for BOLD
//		assertEquals(14, init.getUserPrompt().getFont().getSize());
//		assertEquals(15, init.getFileText().getColumns());
//		assertEquals("OK", init.getOkButton().getActionCommand());
//	}
//	
//	@Test
//	public void testBuildButtonPanel() {// bottom panel method
//		assertEquals("Table", init.getTableButton().getActionCommand());
//		assertEquals(300, init.getTableButton().getSize().width);
//		assertEquals(90, init.getTableButton().getSize().height);
//		assertEquals("Arial", init.getTableButton().getFont().getName());
//		assertEquals(1, init.getTableButton().getFont().getStyle()); // 1 is for BOLD
//		assertEquals(20, init.getTableButton().getFont().getSize());
//	}
//	
//	@Test
//	public void testBuildFileMenu() {			
//		assertEquals("Exit", init.getExit().getActionCommand());
//		assertEquals("File", init.getFileMenu().getActionCommand());		
//	}
//	
//	@Test
//	public void buildAboutMenu(){ // about menu
//		assertEquals("Developers", init.getDevelopers().getActionCommand());
//		assertEquals("Version", init.getVersion().getActionCommand());
//		assertEquals("About", init.getAboutMenu().getActionCommand());
//	}
//	
}
